<?php
$this->title = "论文列表";

$this->registerCss("
	.page-list{text-align: center;margin:40px 12%;background:#fff;padding:40px 0px 0px 0px;box-shadow:0 0 5px #fff;}
	.article-list a{text-decoration: none;}


	.page-contact{margin: 60px 20%;background: #fff;display: flex;height:360px;box-shadow: 0 0 5px #fff}
    .contact-left{flex: 1;width:100%;height:100%;background: url(/img/liuyan@2x.png) no-repeat center;background-size:cover;text-align: center;}
    .contact-left .title{font-size: 28px;color:#fff;font-weight: 500;padding-top: 40px}
    .contact-left .desc{font-size: 18px;color:#fff;font-weight: 300;letter-spacing: 1px}
    .contact-right{flex: 1;}
    .contact-right-inner{width:100%;height:100%;padding:40px 12%;}
    input{width:100%;height:44px;background:#F4F4F6;outline:none;border:0px;padding-left:15px}
    textarea{height:100px;width:100%;background:#F4F4F6;outline:none;border:0px;padding:15px}
    button{width:100%;height:44px;margin-top:30px;background:#2F5DCA;color:#fff;font-size:18px;line-height44px;outline:none;}

    .pagination > .active > a, .pagination > .active > span, .pagination > .active > a:hover, .pagination > .active > span:hover, .pagination > .active > a:focus, .pagination > .active > span:focus {
        background-color: #F6C900;
        border-color: #F6C900;
    }
    .pagination > li > a, .pagination > li > span {
        color: #F6C900;
    }
    .pagination > .disabled > span, .pagination > .disabled > span:hover, .pagination > .disabled > span:focus, .pagination > .disabled > a, .pagination > .disabled > a:hover, .pagination > .disabled > a:focus {
        color: #F6C900;
    }

");
?>

<div class="page-list">
    <p class="title" style="font-size: 18px;font-weight:500;color:#333">论文资源</p>
    <div class="article-list">

        <?php foreach($list as $v){ ?>
    	<a href="/article/<?=$v['id']?>.html">
	    		<div class="article-item" style="display: flex;align-items: center;font-size:18px;color:#333;padding:40px 0px;font-weight: 300;border-bottom: 1px solid #CDCDCD;margin:0px 40px">
	    		<div style="flex: 4;text-align: left;">
	    			<p style="margin: 0px;"><?=$v['title']?></p>
	    		</div>
	    		<div style="flex: 1;text-align: right;">
	    			<p style="margin: 0px;color:#9F9F9F;"><?=$v['publish_date']?></p>
	    		</div>
	    	</div>
    	</a>
        <?php }?>

    </div>

    <div class="text-center"> <?= \yii\widgets\LinkPager::widget(['pagination' => $pages,
        'firstPageLabel'=>"共 ". $count ." 篇 | 首页",
        'prevPageLabel'=>'上一页',
        'nextPageLabel'=>'下一页',
        'lastPageLabel'=>'末页',
        ]); 
        ?></div>

</div>

